<template>
  <div>
    <a v-if="items.length === 0">没有提问或者检查记录，请先进行提问或者检查</a>
    <el-checkbox-group v-model="result">
      <el-checkbox v-for="item in currentData" :label="item.q"></el-checkbox><br>
    </el-checkbox-group>
  </div>
</template>

<script>
export default {
  name: "AnalysisSelector",
  data() {
    return {
      result:[]
    };
  },
  computed:{
    currentData: function (){
      return this.items
    }
  },
  watch:{
    result:function (){
      this.$emit('changed',this.result)
    }
  },
  props:{
    items: Array,
  },
};
</script>

<style scoped>

</style>
